/*
 * @Description  : 
 * @Date         : 2021-08-20 10:08:48
 * @Author       : 保锋
 * @LastEditTime : 2021-08-26 10:44:11
 * @LastEditors  : 保锋
 * @FilePath     : \flutter_demo\lib\pages\car_number_input\action.dart
 */
import 'package:flutter/material.dart';

///抽象dialog行为
abstract class DialogAction {
  ///自定义dialog
  Future<void> show({
    required Widget widget,
    AlignmentGeometry? alignment,
    bool? isPenetrate,
    bool? isUseAnimation,
    Duration? animationDuration,
    bool? isLoading,
    Color? maskColor,
    bool? clickBgDismiss,
    VoidCallback? onDismiss,
  }) async {
    throw 'not implement show(...)';
  }

  ///close dialog : must implement
  Future<void> dismiss();

  /// get Widget : must implement
  Widget getWidget();
}
